home *** CD-ROM | disk | FTP | other *** search
/ Multicollection 5 Soft 1997 / Multicollection 5 soft 1997 (Win NT 4.0 Work, Serv, OS2).iso / nt40_wrk / classes.zi_ / CLASSES.ZIP / java / lang / Class.class (.txt) < prev    next >
Encoding:
Java Class File  |  1996-08-23  |  977 b   |  29 lines

  1. package java.lang;
  2.  
  3. public final class Class {
  4.    private int internal;
  5.  
  6.    private Class() {
  7.    }
  8.  
  9.    public static native Class forName(String var0) throws ClassNotFoundException;
  10.  
  11.    public native Object newInstance() throws InstantiationException, IllegalAccessException;
  12.  
  13.    public native String getName();
  14.  
  15.    public native Class getSuperclass();
  16.  
  17.    public native Class[] getInterfaces();
  18.  
  19.    public native ClassLoader getClassLoader();
  20.  
  21.    public native boolean isInterface();
  22.  
  23.    public String toString() {
  24.       return (this.isInterface() ? "interface " : "class ") + this.getName();
  25.    }
  26.  
  27.    protected native void finalize();
  28. }
  29.